package com.ruoyi.model.contest.vo;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.model.comment.Comment;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author : 张怀秋
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ContestAndCommentVo {
    /**
     * 主键id
     */
    private String id;

    /**
     * 竞赛标题
     */
    @Excel(name = "竞赛标题")
    private String title;

    /**
     * 竞赛描述
     */
    @Excel(name = "竞赛描述")
    private String description;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date pushTime;

    /**
     * 排序字段
     */
    private Integer sort;

    /**
     * 允许参加的竞赛人数
     */
    @Excel(name = "允许参加的竞赛人数")
    private Long personNum;

    private String pushName;

    /**
     * 内容详情
     */
    @Excel(name = "内容详情")
    private String content;

    /**
     * 封面路径
     */
//    @Excel(name = "图片id")
    private String cover;

    /**
     * 活动地址
     */
    @Excel(name = "活动地址")
    private String local;

    /**
     * 是否允许提交电子档
     */
    @Excel(name = "是否允许提交电子档")
    private String isEmail;

    /**
     * 是否收费
     */
    @Excel(name = "是否收费")
    private String isToll;

    /**
     * 收取费用
     */
    @Excel(name = "收取费用")
    private BigDecimal toll;

    /**
     * 竞赛开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "竞赛开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /**
     * 竞赛结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "竞赛结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /**
     * 主办方
     */
    @Excel(name = "主办方")
    private String organizer;

    /**
     * 发布者id
     */
    @Excel(name = "发布者id")
    private String pushId;

    /**
     * 分类id
     */
    @Excel(name = "分类id")
    private String categoryId;

    /**
     * 报名开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enrollStartDate;

    /**
     * 报名结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enrollEndDate;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long participationNum;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long viewNum;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String isComment;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String isTop;

    /**
     * 竞赛状态
     */
    @Excel(name = "竞赛状态")
    private String status;

    /**
     * 逻辑删除表示
     */
    @Excel(name = "逻辑删除表示")
    @TableLogic
    private String isDel;

    private String isSystem;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String isTeam;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long teamNum;

    /**
     * 评论列表
     */
    private List<Comment> commentList;
}
